/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.recycling.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.medusa.gruul.common.data.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 回收订单表
 * </p>
 *
 * @author whh
 * @since 2021-04-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_recycling_order")
@ApiModel(value = "RecyclingOrder对象", description = "回收订单表")
public class RecyclingOrder extends BaseEntity<RecyclingOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商铺ID
     */
    @ApiModelProperty(value = "商铺ID")
    @TableField("shop_id")
    private String shopId;

    /**
     * 物流单号
     */
    @ApiModelProperty(value = "物流单号")
    @TableField("shipment_number")
    private String shipmentNumber;
    /**
     * 物流公司
     */
    @ApiModelProperty(value = "物流公司")
    @TableField("shipment_name")
    private String shipmentName;

    /**
     * 物品图片
     */
    @ApiModelProperty(value = "物品图片")
    @TableField("article_imgs")
    private String articleImgs;

    /**
     * 凭证图片
     */
    @ApiModelProperty(value = "凭证图片")
    @TableField("proof_imgs")
    private String proofImgs;

    /**
     * 寄出时间
     */
    @ApiModelProperty(value = "寄出时间")
    @TableField("send_out")
    private LocalDateTime sendOut;

    /**
     * 回收状态 0-待寄出  1-已寄出  2-取消
     */
    @ApiModelProperty(value = "回收状态 0-待寄出  1-已寄出  2-取消 ")
    @TableField("ed_status")
    private Integer edStatus;

    /**
     * 店铺用户id
     */
    @ApiModelProperty(value = "店铺用户id")
    @TableField("shop_user_id")
    private Long shopUserId;

    /**
     * 获得卡券id
     */
    @ApiModelProperty(value = "获得卡券id")
    @TableField("coupon_ids")
    private String couponIds;

    @ApiModelProperty(value = "用户名称")
    @TableField("nick_name")
    private String nickName;

    /**
     * 头像url
     */
    @ApiModelProperty(value = "头像url")
    @TableField("avatar_url")
    private String avatarUrl;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
